<?php
    $sql="select * from dm_sanpham where idsp='$_GET[idsp]'";
    $data=mysql_query($sql);
    $data_2=mysql_fetch_array($data);
    $link_hinh="image/ha_sp/".$data_2['hinh'];
    echo "<center>";
        echo "<div class='tdg___ggg'>";
            echo "<a href='#' id='khongmau'>";
                echo $data_2['tensp'];
            echo "</a>";
        echo "</div>";
        echo "<div class='ndg___ggg'>";
            echo "<table width='638px' style='font-size:14px' >";
                echo "<tr>";
                    echo "<td valign='top' width='216px' align='center'>";
                        echo "<a href='#'>";
                            echo "<img border='0' src='$link_hinh' width='150px' height='170px'>";
                        echo "</a>";
                    echo "</td>";
                    echo "<td width='422px' valign='top'>";
                        echo "<a href='#' class='link_3'>";
                            echo $data_2['tensp'];
                        echo "</a>";
                        echo "<br><br>";
                        //echo "Giá bán : ".$data_2['gia_ban'];
                        $dinh_dang_gia=number_format($data_2['gia'],0,".",".");
                        echo "<b style='font-size:16px'>Giá bán : </b>";
                        echo "<span class='gia_ban' style='font-size:16px' >";
                            echo $dinh_dang_gia; echo " VND";
                        echo "</span>";
                        echo "<br>";
                        echo "<div class='cao_3_px'></div>";
                        echo "<div class='cao_3_px'></div>";
                        echo "<form action=''>";
                            echo "<b style='font-size:16px'>Trong kho :".$data_2['soluong']." </b><br>";
                            echo "<b style='font-size:16px'>Số lượng : </b>";
                            echo "<input style='width:50px' value='1' name='so_luong' onKeyPress='if((event.keyCode< 48)|| (event.keyCode > 57)) event.returnValue =false'>";
                            echo "<br>";
                            echo "<div style='overflow:hidden;width:5px;height:3px'></div>";
                            echo "<input type='hidden' name='id_sp__nnn' value='$data_2[idsp]'>";
                            echo "<input type='hidden' name='them_vao_gio' value='them_vao_gio'>";
                            //echo "<input type='submit' value='Thêm vào giỏ' >";
                            echo "<input type='image' src='image/chung/mua.gif' style='border:0px solid red'>";
                        echo "</form>";
                    echo "</td>";
                echo "</tr>";
            echo "</table>";
            echo "<div style='border-top:1px solid #999999; background:#ececec;width:638px;font-size:14px' >";
                echo "<div style='width:628px;margin-left:5px;'><font size='+1' color='#0000CC'>";
                    echo $data_2['thongtin'];
                echo "</font></div>";
            echo "</div>";
        echo "</div>";
    echo "</center>";
?>